﻿using System;
using System.Collections.Generic;
using T.FAS.Runtime.Base.Entity;
using T.FAS.Runtime.ScheduleJob.Engine;
using T.FAS.Runtime.ScheduleJob.Manager;
using T.FAS.Runtime.ScheduleJob.SPI;

namespace T.FAS.Runtime.ScheduleJob.Service
{
    public class SysExecuteFrequencyService
    {
        private static readonly object lockObj = new object();

        private static SysExecuteFrequencyService _service = null;

        private SysExecuteFrequencyManager manager = null;
        public static SysExecuteFrequencyService GetInstance()
        {
            if (_service == null)
            {
                lock (lockObj)
                {
                    if (_service == null)
                        _service = new SysExecuteFrequencyService();
                }
            }
            return _service;
        }
        private SysExecuteFrequencyService()
        {
            manager = SysExecuteFrequencyManager.GetInstance();
        }
        public List<SysExecuteFrequency> GetSysExecuteFrequencies()
        {
            return  manager.GetSysExecuteFrequencies();
        }
    }
}
